package org.smart4j.framework.bean;

import java.io.InputStream;

/**
 * description: 封装上传文件参数
 * @version v1.0
 * @author w
 * @date 2018年10月21日下午9:35:07
 **/
public class FileParam {
	
	/**
	 * 文件表单的字段名
	 */
	private String fieldName;
	/**
	 * 上传文件名
	 */
	private String fileName;
	/**
	 * 上传文件大小
	 */
	private Long fileSize;
	/**
	 * 上传文件类型 content-type 
	 */
	private String contentType;
	
	/**
	 * 上传文件的输入字节流
	 */
	private InputStream inputStream;

	public FileParam(String fieldName, String fileName, Long fileSize, String contentType, InputStream inputStream) {
		super();
		this.fieldName = fieldName;
		this.fileName = fileName;
		this.fileSize = fileSize;
		this.contentType = contentType;
		this.inputStream = inputStream;
	}

	public String getFieldName() {
		return fieldName;
	}

	public String getFileName() {
		return fileName;
	}

	public Long getFileSize() {
		return fileSize;
	}

	public String getContentType() {
		return contentType;
	}

	public InputStream getInputStream() {
		return inputStream;
	}
	
	
}
